Grammar

    0 $accept: input $end

    1 input: %empty
    2      | input line

    3 line: FN FN_NAME
    4     | BB BB_NUM
    5     | PRED pred_nums
    6     | SUCC succ_nums
    7     | STMT

    8 pred_nums: %empty
    9          | pred_nums PRED_NUM

   10 succ_nums: %empty
   11          | succ_nums SUCC_NUM


Terminals, with rules where they appear

$end (0) 0
error (256)
FN (258) 3
BB (259) 4
PRED (260) 5
SUCC (261) 6
FN_NAME (262) 3
BB_NUM (263) 4
PRED_NUM (264) 9
SUCC_NUM (265) 11
STMT (266) 7


Nonterminals, with rules where they appear

$accept (12)
    on left: 0
input (13)
    on left: 1 2, on right: 0 2
line (14)
    on left: 3 4 5 6 7, on right: 2
pred_nums (15)
    on left: 8 9, on right: 5 9
succ_nums (16)
    on left: 10 11, on right: 6 11


State 0

    0 $accept: . input $end

    $default  reduce using rule 1 (input)

    input  go to state 1


State 1

    0 $accept: input . $end
    2 input: input . line

    $end  shift, and go to state 2
    FN    shift, and go to state 3
    BB    shift, and go to state 4
    PRED  shift, and go to state 5
    SUCC  shift, and go to state 6
    STMT  shift, and go to state 7

    line  go to state 8


State 2

    0 $accept: input $end .

    $default  accept


State 3

    3 line: FN . FN_NAME

    FN_NAME  shift, and go to state 9


State 4

    4 line: BB . BB_NUM

    BB_NUM  shift, and go to state 10


State 5

    5 line: PRED . pred_nums

    $default  reduce using rule 8 (pred_nums)

    pred_nums  go to state 11


State 6

    6 line: SUCC . succ_nums

    $default  reduce using rule 10 (succ_nums)

    succ_nums  go to state 12


State 7

    7 line: STMT .

    $default  reduce using rule 7 (line)


State 8

    2 input: input line .

    $default  reduce using rule 2 (input)


State 9

    3 line: FN FN_NAME .

    $default  reduce using rule 3 (line)


State 10

    4 line: BB BB_NUM .

    $default  reduce using rule 4 (line)


State 11

    5 line: PRED pred_nums .
    9 pred_nums: pred_nums . PRED_NUM

    PRED_NUM  shift, and go to state 13

    $default  reduce using rule 5 (line)


State 12

    6 line: SUCC succ_nums .
   11 succ_nums: succ_nums . SUCC_NUM

    SUCC_NUM  shift, and go to state 14

    $default  reduce using rule 6 (line)


State 13

    9 pred_nums: pred_nums PRED_NUM .

    $default  reduce using rule 9 (pred_nums)


State 14

   11 succ_nums: succ_nums SUCC_NUM .

    $default  reduce using rule 11 (succ_nums)
